home *** CD-ROM | disk | FTP | other *** search
/ IRIX 6.3 Development Libraries / SGI IRIX 6.3 Development Libraries.iso / dist6.3 / gl_dev.idb / usr / share / src / OpenGL / toolkits / libwidget / GLwDAUtil.c.z / GLwDAUtil.c
Encoding:
C/C++ Source or Header  |  1996-12-06  |  526 b   |  21 lines

  1. /* utility routines for GLX.
  2.  * Since these routines are used both in the Motif and X versions of
  3.  * the widget, they cannot peek directly into the structure
  4.  */
  5. #include <X11/IntrinsicP.h>
  6. #include <X11/StringDefs.h>
  7. #include <GL/glx.h>
  8. #include <GL/gl.h>
  9. #include <Xm/PrimitiveP.h>
  10. #include <X11/GLw/GLwDrawAP.h>
  11.  
  12. void GLwDrawingAreaMakeCurrent (Widget w, GLXContext ctx)
  13. {
  14.     glXMakeCurrent (XtDisplay(w), XtWindow(w), ctx);
  15. }
  16.  
  17. void GLwDrawingAreaSwapBuffers (Widget w)
  18. {
  19.     glXSwapBuffers (XtDisplay(w), XtWindow(w));
  20. }
  21.